- Undirected vs Directed
- Cylic vs Acylic
Graph can be represented as matrix or adjancecy list. The latter is more programming friendly. The adjancecy list can be represented in several ways
- List<List<T_vertex_data>>
- Map<vertex_data, List<T_vertex>>
- List<Node>, where Node class has List<T_vertex_data>
Graph has two basic algorithms
- DFS
- BFS
Undirected Graph is basic.
NoCycle+IsTree+Not forest ?
DAG is particular interesting And DAG's Topological sort is powerful to solve scheduler dependencies problem
没有评论:
发表评论