Expand description
§Title
Structs§
- Adjacency
Edge Dict Sparse, edge first, adjacency list
Space Complexity
- for undirected graph
- for directed graph
Node Time Complexity
This structure has very good performance for nodes
- Insert:
- Query:
- Removal:
- Count:
- Neighbors:
Edge Time Complexity
This structure has linear complexity across the edges
- Insert edge:
- Query edge:
- Removal edge:
- Count edges:
- Adjacency
Node List Sparse, node first, adjacency list
Space Complexity
- for undirected graph(deprecated)
- for directed graph
Node Time Complexity
This structure has very good performance for nodes
- Insert:
- Query:
- Removal:
- Count:
- Neighbors:
Edge Time Complexity
This structure has linear complexity across the edges
- Insert edge:
- Query edge:
- Removal edge:
- Count edges:
- Edge
First AllBridges - Edge
First AllEdges - Edge
First AllNodes - Edge
First Find Bridges - Edge
First Find Neighbors
Type Aliases§
- DiGraphAED
- Sparse adjacency list, edge-first directed graph
- DiGraphAEL
- Dense adjacency list, edge-first directed graph
- DiGraphAND
- Sparse adjacency list, node-first directed graph
- DiGraphANL
- Dense adjacency list, node-first directed graph
- UnGraphAED
- Sparse adjacency list, edge-first undirected graph
- UnGraphAEL
- Dense adjacency list, edge-first undirected graph
- UnGraphAND
- Sparse adjacency list, node-first undirected graph
- UnGraphANL
- Dense adjacency list, node-first undirected graph