Programitically exporting subgraph of NodeXL

Jul 10, 2012 at 8:16 AM

Hello Tony,

I am using C# for coding. I want to to add similar functionality as is provided in Nodexl when user selects some vertices and clicks on "show in new pane", the selected vertices and edges must be shown in the new window.

How should I proceed for it??

Please help



Jul 10, 2012 at 4:58 PM
Edited Jul 10, 2012 at 4:58 PM


NodeXL's Export Selection to New NodeXL Workbook feature copies selected table rows from one workbook to another.  It doesn't use the NodeXL object model at all.

However, there is a method called SubgraphCalculator.GetSubgraphAsNewGraph() in the Smrf.NodeXL.Algorithms namespace.  You'll find it listed in the NodeXLApi.chm help file.  Here is the description:

"Creates a new graph containing copies of a specified set of vertices and the edges that connect them."

Perhaps you could use that in your application.

-- Tony