New to NodeXL. SOS!!

Jun 21, 2010 at 9:55 PM
I am just getting started with NodeXL and would like to develop a silverlight C# application on top of NodeXL platform for my Grad course work. Is there a brief "developers tutorial" to illustrate how to perform the following steps in C# : 1. Create a graph with a collection of nodes and edges. 2. Setup the layout. 3. Conduct some common network statistics. 4.Generate a graph and save on the disk or show on web browser. Thanks in advance for the so needed help
Jun 22, 2010 at 12:51 AM

For 1, 2, and 4, see the discussion "Display static image on web" at

For 3, there is a family of classes in the NodeXL.Algorithms namespace that compute metrics for a graph.  In the NodeXLApi.chm help file, go to the GraphMetricCalculatorBase topic and click the "Derived types" link to see a list.  Each class implements a TryCalculateGraphMetrics() method that takes an IGraph and returns some sort of object that contains the metrics.  The returned object type is documented in the topic for each class.

To calculate the in-degree for each vertex in a directed graph, for example, do this:

        Dictionary<Int32, VertexDegrees> oVertexDegrees;

        if ( (new VertexDegreeCalculator()).TryCalculateGraphMetrics(oGraph, null, out oVertexDegrees))
            foreach (KeyValuePair<Int32, VertexDegrees> oKeyValuePair in oVertexDegrees)
                    "The in-degree for the vertex with ID {0} is {1}."


-- Tony