User 270 | 5/5/2014, 3:09:34 AM
I want to write an APP to convert a directed graph to an undirected graph.
The input format is adj, which means "vid nunofneighbors neighbor0 neighbor1 ..."
The output format I desired is directed adj, which means "vid numofincomingneighbors inneighbor0 inneighbor1 ... numofoutcomingneighbors outneighbor0 outneighbor1 ..."
I find I can load a graph using loadformat function and pass "adj" as a parameter. However, how can I store a graph using adj format? Is there a method to iterate all the incoming and outgoing edges when implementing savevertex function?