Allows access to the graphlib graph. May be used for some algorithms Do not use this to modify the graph, or the cycle detection may not work anymore.
Creates an independent copy of this graph data structure. Further changes to this graph are not reflected in the returned copy, and vice-versa.
All vertices and edges are copied as-is and are not cloned, so that changing the state of a vertex or edge also changes the state of the vertex or edge in the copied graph.
Optionally you can also pass a function for cloning the vertices and edges.
Clone function that takes a vertex and returns a copy of it.
Clone function that takes an edge datum and returns a copy of it.
A copy of this graph.
Generated using TypeDoc
Adapter for the npm
graphlib
module. You need to addgraphlib
as a dependency and pass a reference to the graphlib Graph constructor to the constructor of this class.CommonAdapter