Unfortunately not. But we are working on improving the drawing and
will add self-loops.
Until then, one approach is to use graphviz (graphviz.org). NetworkX
can write "dot" format files and then you can process them to make the
drawing you like with graphviz.
Aric
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.
On Wed, Sep 14, 2011 at 5:57 PM, satyam mukherjee <dira...@gmail.com> wrote:
> Thanks Aric. I found a way to implement this is R.
>> library("igraph")
>> dat=read.csv(file.choose(),header=TRUE,row.names=1,check.names=FALSE)
> Enter file name: filename1.csv
>> m=as.matrix(dat)
>> net=graph.adjacency(m,mode="directed",weighted=TRUE,diag=TRUE)
>> tkplot(net,vertex.label=V(net)$name,layout=layout.fruchterman.reingold,
>> vertex.label.color="black",edge.color="black",edge.width=E(net)$weight/3,
>> edge.arrow.size=1.5,edge.curved=TRUE)
> Loading required package: tcltk
> Loading Tcl/Tk interface ... done
>
>
> Maybe we could create an interface of networkx with R and plot the self
> loops
>
If you really want to do this with R rather than graphviz, look at the
excellent RPy2 package.
Good luck,
Moritz