Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 391 Bytes

README.md

File metadata and controls

12 lines (12 loc) · 391 Bytes

Betweeness-centrality

for finding top nodes with highest betweeness centrality from a given graph

How to use:

import the main Class and write as follows
for eg-

from SBC_2018363 import Graph  
vertices=[1,2,3,4,5,6,7,8,9]  
edges=[(1,2),(2,3),(1,3),(1,4),(3,4),(4,5),(4,6),(5,8),(5,7),(5,6),(6,7),(6,8),(8,7),(7,9)]  
graph = Graph(vertices, edges)  
print(graph)