igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] reading .dot files in igraph? (graphviz)


From: Andrew Stewart
Subject: Re: [igraph] reading .dot files in igraph? (graphviz)
Date: Tue, 10 Jan 2012 11:32:14 -0500

Very simple: 

library(sna)
library(igraph)

g.dot <- read.dot("file.dot")
g.graph <- graph.adjacency(g.dot)
plot(g.graph)


Thanks Gabor.

On Jan 10, 2012, at 10:44 AM, Gábor Csárdi wrote:

> See get.adjacency() and graph.adjacency() for converting igraph graphs
> to and from adjacency matrices.
> 
> Best,
> G.
> 
> On Tue, Jan 10, 2012 at 10:42 AM, andrew stewart
> <address@hidden> wrote:
>> Looks like sna includes a dot reader as an adjacency matrix, so
>> between that, Rgraphviz, graph and igraph, i imagine there must be a
>> workflow.
>> 
>> Ill play around and report back any success.
>> 
>> On Jan 10, 2012, at 8:52 AM, "Gábor Csárdi" <address@hidden> wrote:
>> 
>>> You're right, this is not supported currently. If I remember
>>> correctly, GraphViz has a parser for DOT files that would be
>>> technically easy to reuse in igraph, but its license does not allow us
>>> to do that.
>>> 
>>> You can follow this issue here:
>>> https://bugs.launchpad.net/igraph/+bug/914275
>>> 
>>> Best,
>>> Gabor
>>> 
>>> 
>>> On Mon, Jan 9, 2012 at 4:25 PM, Andrew Stewart
>>> <address@hidden> wrote:
>>>> I can't seem to find anything about reading in graphviz style .dot files 
>>>> with igraph.  Anyone know a way to do this?  Maybe through some 
>>>> intermediate format?
>>>> _______________________________________________
>>>> igraph-help mailing list
>>>> address@hidden
>>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>> 
>>> 
>>> 
>>> --
>>> Gabor Csardi <address@hidden>     MTA KFKI RMKI
>>> 
>>> _______________________________________________
>>> igraph-help mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>> 
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
> 
> 
> 
> -- 
> Gabor Csardi <address@hidden>     MTA KFKI RMKI
> 
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help




reply via email to

[Prev in Thread] Current Thread [Next in Thread]