Can we apply Graph Schemes using C# ?

Jun 15, 2010 at 9:30 AM
Edited Jun 15, 2010 at 10:43 AM

Greetings for such a wonderful product!!!

My question is -

Is it possible to apply graph schemes - categorized, weighted and temporal using the class library provided.

I am able to generate the graph metrics but I want to categorize the graph on basis of these metrics and convert them to a GIF.


If this support is not provided, will I have to do the color coding myself by dividing the metric values in range and assigning colors to those ranges?

Is there any support for the above mentioned feature directly?


Thanks in advance.


Jun 15, 2010 at 5:06 PM
Edited Jun 15, 2010 at 7:19 PM


Unfortunately, the code that creates schemes in the NodeXL Template is tied to the Template and isn't usable in other applications.  There is a reason for that:  The scheme code populates attribute columns in the workbook using the values in other workbook columns, then lets the Template's common "read workbook" routine populate the graph from the workbook.  In your case, I believe you want to populate the graph directly from the graph metrics you've calculated, and workbook columns don't come into play at all.  So our scheme code won't be of much use to you.

The only code you might be able to reuse is Microsoft.Research.CommunityTechnologies.GraphicsLib.ColorGradientMapper, which maps a range of numbers to a gradient of colors, and Microsoft.NodeXL.ExcelTemplate.WorkbookSchemeAutoFiller.GetVertexCategoryScheme(), which gets the attributes to use for categories.  They are not documented in the NodeXLApi.chm help file, but as of June 15, 2010, you can find them here:

Sorry I can't offer more help than that.

-- Tony