Skip to main content
Version: 4.1

toAdjacencyList()

toAdjacencyList converts a graph to an adjacency list.

Learn more about the toAdjacencyList plugin.

graphUtils.toAdjacencyList(graph: dia.Graph): AdjacencyList;

Converts a graph to an adjacency list.

Types

AdjacencyList

interface AdjacencyList {
[elementID: string]: dia.Cell.ID[];
}

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub