Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 493 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 493 Bytes

Graph-Implementation

This is the C++ implementation of graph data structure. It supports the easy construction of undirected graph class and some basic operations on graph like adding and deleting nodes and edges as well as listing them. A function called breadthfirstTraversal is included for Breadth First Traversal of Graph in order to find friends of friends.


Instructions for running:

  • Install GCC compiler.
  • Run g++ main.cpp Graph.cpp -o a.exe
  • Run ./a.exe