|
Share this post! |
| Vote this! |
|
What is a graph?
A graph is a way of representing connections between places.
Mathematically, a graph is a collection of nodes and edges. Nodes are
locations that are connected together by the edges of the graph. For
instance, if you had two small towns connected by a two-way road, you
could represent this as a graph with two nodes, each node representing a
town, and one edge, the road, connecting the two towns together. In
addition to the undirected graph, in which the edge is a two-way
connection, there are directed graphs, in which edges connect only one
way. For instance, you could represent the previous example of two
cities connected by a road as a directed graph consisting of two nodes
and two edges, each edge connecting one of the nodes to the other.
more...
Highly
Recommended Reading After Above
Data Structures
0 comments:
Post a Comment