Click here to Skip to main content
14,665,547 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have adjacency matrix. I want to draw graph from it in c#. Please help me. Thanks all
Posted
Comments
WiganLatics 8-Mar-15 13:08pm
   
If you want to physically draw it, then something like:
1) for each row in matrix, create a UI Object (a label perhaps?)
2) for each row loop through each col and if the cell is a 1 then draw a line between the labels for the relevant indexes (i.e. row r and column c)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100