Skip to content

Solution is not right for the dataset (directed and undirected) #53

@fwidjaya20

Description

@fwidjaya20

Function snap.GetBetweennessCentr(self.G, nodesKeyCentrVals, edgesKeyCentrVals, 1.0, boolean) should have been filled with boolean value (True), by default its False. On the documentation, its stated that True means direct
ed graph, and False means undirected graph. In the source code, stated that the node has source and dest node (which means that its a directed graph).

So my solution for this case is:
On Centrality.py (function genGraphInfoBetweeness())
Change:
snap.GetBetweennessCentr(self.G, nodesKeyCentrVals, edgesKeyCentrVals, 1.0)
before

To:
snap.GetBetweennessCentr(self.G, nodesKeyCentrVals, edgesKeyCentrVals, 1.0, True)
after

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions