Is there a way to draw a graph from the Incidence matrix.
By graph I mean http://en.wikipedia.org/wiki/Graph_(mathematics) not a plot.
Up till now I found only how to convert incidence matrix to a adjacency matrix.
In R this is possible with an igraph library. So is there an easy way to do it in matlab
You may use
gplot:This function is commonly used in machine learning problems. While searching up I’ve seen an implementation for weighted graph plotting.
http://www.mathworks.com/help/matlab/ref/gplot.html
EDIT:
All you have to do is make sure the
XYplane has sufficient (x,y) pairs for each node in your graph.Here is A’s
gplot: