Graph Reflexivity Project

This project demonstrates a simple graph implementation in JavaScript that supports reflexivity (adding self-loops to all nodes). It uses the graphlib library for graph data structures and lodash for utility functions.

Installation

npm install

Running the Example

node src/index.js

You will see the adjacency list before and after applying reflexivity.

Testing

Run the test suite with:

npm test

The tests cover basic graph operations, reflexivity, and adjacency list generation.

Dependencies

  • graphlib Provides the underlying graph data structure.
  • lodash Utility library (used for potential future extensions).
  • jest Testing framework (dev dependency).

License

MIT

S
Description
BroJS: Повторный экзамен: Граф с рефлексией и доработкой
Readme MIT 673 KiB
Languages
Python 51.9%
JavaScript 39.3%
TypeScript 8.8%