Can we apply Graph Schemes using C# ?

Jun 15, 2010 at 8:30 AM
Edited Jun 15, 2010 at 9: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 4:06 PM
Edited Jun 15, 2010 at 6:19 PM

Vipsy07:

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:

http://nodexl.codeplex.com/SourceControl/changeset/view/51265#395189

http://nodexl.codeplex.com/SourceControl/changeset/view/51265#424628

Sorry I can't offer more help than that.

-- Tony