Larry:
Yes, that is the correct class. For synchronous calculations, your code would look something like the following. (I haven't compiled this, so I can't guarantee there are no typos here.)
Internally, the CalculateGraphMetrics() object makes a call to an executable called SnapGraphMetricCalculator.exe. This executable is included in the NodeXL Class Libraries download. If you place the executable in the same folder as the Smrf.NodeXL.Algorithms.dll assembly, then NodeXL will automatically find and use the executable. You don't need to do anything else, and you don't need to know anything about SNAP.
-- Tony
Yes, that is the correct class. For synchronous calculations, your code would look something like the following. (I haven't compiled this, so I can't guarantee there are no typos here.)
BrandesFastCentralityCalculator calculator = new BrandesFastCentralityCalculator();
Dictionary<Int32, BrandesVertexCentralities> centralities = calculator.CalculateGraphMetrics(graph);
The dictionary key is a Vertex.ID and the value is a BrandesVertexCentralities object for the vertex. The BrandesVertexCentralities class is documented in the NodeXLApi.chm help file.Internally, the CalculateGraphMetrics() object makes a call to an executable called SnapGraphMetricCalculator.exe. This executable is included in the NodeXL Class Libraries download. If you place the executable in the same folder as the Smrf.NodeXL.Algorithms.dll assembly, then NodeXL will automatically find and use the executable. You don't need to do anything else, and you don't need to know anything about SNAP.
-- Tony