Posted inComputer Science Data Structures Graphs
Graph Basics in Data Structures: Nodes, Edges, and Representations
Graphs are collections of nodes and edges, or vertices and edges. In this tutorial we implement them as template classes in C++ so you can use custom data types for nodes and edge weights. We cover undirected unweighted graphs, then add directions and weights to show path costs between cities or network nodes.
