Generating SubGraphs with the API

Sep 3, 2010 at 4:18 PM

Hi all,

anyone has a working example of how to generate the SubGraphs for each node and save them as pictures using the API?

If not, can you share some insights about it?

Thanks,

Carlos 

Sep 3, 2010 at 4:44 PM
Edited Sep 3, 2010 at 5:07 PM

Carlos:

If you want to see how our Excel Template does it, please see the SubgraphImageCreator.cs file in the NodeXL source code.  (I would normally provide a link to the individual file here, but the CodePlex source code browser doesn't seem to be working today.)

SubgraphImageCreator is far more complicated than what you need, because it handles a bunch of user options and runs asynchronously.  The methods you might find useful, however, are CreateSubgraph(), which creates a subgraph given a single vertex, and CreateAndSaveSubgraphImageInFolder(), which saves an image of the subgraph.

-- Tony

Sep 3, 2010 at 5:22 PM
Thank you for the pointer Tony.

I'll give it a try.

Carlos

On Fri, Sep 3, 2010 at 5:44 PM, tcap479 <notifications@codeplex.com> wrote:

From: tcap479

Carlos:

If you want to see how our Excel Template does it, please see the SubgraphImageCreator.cs file in the NodeXL source code.  (I would normally provide a pointer to the individual file here, but as of today the CodePlex source code browser doesn't seem to be working.)

SubgraphImageCreator is far more complicated than what you need, because it handles a bunch of user options and runs asynchronously.  The methods you might find useful, however, are CreateSubgraph(), which creates a subgraph given a single vertex, and CreateAndSaveThumbnailImage(), which saves an image of the subgraph.

-- Tony

Read the full discussion online.

To add a post to this discussion, reply to this email (NodeXL@discussions.codeplex.com)

To start a new discussion for this project, email NodeXL@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com




--

carlos.mendes@welisten.eu 
Mobile: (+351) 91 33 007 00

Enterprise Innovation Management software:
www.innovationcast.eu

weListen - Business . Software . Solutions 
Neopark, Av. 
Tomás Ribeiro, n. 43 – 2H
2790-221 Carnaxide
Portugal