Skip to content

Graphs: What are graphs

Devrath edited this page Mar 10, 2024 · 4 revisions

What are graphs?

  • Graphs are used anywhere you want to model the relationships between a bunch of objects.
  • Some examples are,
    • Routers in a network.
    • People on a social media platform.
  • Basically, Graphs are used to represent connected objects. We can see how the objects are connected and how strong the connections are.
  • Graph consists of
    • Nodes
    • Edges
  • A tree is a kind of graph. A graph without cycles.

Types of graph

Undirected Graph Directed Graph Weighted
undirected directed directed_weighted

Clone this wiki locally