I'm trying to use snap.py for the first time and looked through the documentation, but couldn't find any information of how to created weighted edges. Could anyone help me out or point me the documentation that has it? Also, does the node centrality (GetDegreeCentr, GetBetweenessCentr, GetEigenVectorCentr) take into account the edge weights?
--
You received this message because you are subscribed to the Google Groups "SNAP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snap-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/123f2568-db57-44ba-a4d5-4aa907d4bd8f%40googlegroups.com.
Hi,
Yes, SNAP implements a number of node centrality algorithms with edge weights. They are available in Python, although they are not yet documented. Use TNEANet to define the graph structure and a vector of floats TFltV to provide weights. Available methods are GetWeightedBetweennessCentr, GetWeightedClosenessCentr, GetWeightedFarnessCentr, GetWeightedPageRank, GetWeightedShortestPath, GetWeightOutEdges. Documentation is available for the C++ version: http://snap.stanford.edu/snap/doc/snapuser-ref/index.html
Thanks,
Rok
On 02/18/20 15:29, 'Shannon Tee' via SNAP Users Group wrote:
I'm trying to use snap.py for the first time and looked through the documentation, but couldn't find any information of how to created weighted edges. Could anyone help me out or point me the documentation that has it? Also, does the node centrality (GetDegreeCentr, GetBetweenessCentr, GetEigenVectorCentr) take into account the edge weights?--
You received this message because you are subscribed to the Google Groups "SNAP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snap-d...@googlegroups.com.
Hi,
SNAP works with large-memory machines where the entire graph is
loaded in the main memory of one machine. A distributed setting
will incur a significant time penalty, so we use it only for data
pre-processing, but not for network analytics.
Best,
Rok
To unsubscribe from this group and stop receiving emails from it, send an email to snap-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/558114ad-df79-4ee0-a0ad-f5bdac6492ca%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/649f3099-f419-fe6f-9a40-745977ed62b1%40cs.stanford.edu.
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/44dc9421-55ad-4494-88a6-e6de2a33d108%40gmail.com.
Hi Qiao,
GetWeightedPageRank() is a function, not a class method. Please call it with: snap.GetWeightedPageRank(N, ...).
The parameters are described here: http://snap.stanford.edu/snap/doc/snapuser-ref/d3/d73/namespaceTSnap.html#a1645fe3468627d68ff93c22d2f6a9f02
Best,
Rok
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/0f8f4acf-c8f6-4c32-aec9-02b957979ef5n%40googlegroups.com.