Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetweennessCentrality ¶
Betweenness centrality quantifies the number of times a candidate node acts as a bridge along the shortest path between two other nodes.
https://en.wikipedia.org/wiki/Centrality#Betweenness_centrality
The parameter nbOfNodes is the total number of nodes in the graph. The candidate node will be ignored if it is in the list of nodes.
func Dijkstra ¶
func Dijkstra(start *Node)
Dijkstra updates the distances from the start node to *any* other node in the graph.
func ShortestPaths ¶
Returns the number of shortest paths between the start node and the end node and the number of shortest paths passing through the middleman.
Types ¶
Click to show internal directories.
Click to hide internal directories.