export colored nodes using toDot in ontoTools
2
0
Entering edit mode
@yi-xiong-sean-zhou-887
Last seen 10.1 years ago
Hi, Could anyone tell me how to export a .dot file from ontoTools using toDot? Thanks. Sean [[alternative HTML version deleted]]
ontoTools ontoTools • 730 views
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 17 days ago
United States
> Hi, > > > > Could anyone tell me how to export a .dot file from ontoTools using toDot? library(ontoTools) example(randomGraph) toDot( g1, "abc.dot") creates a `dot' format file in abc.dot for the graph g1. the documentation is not so good for toDot, i will address this. thanks for your question
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 17 days ago
United States
On Sat, 21 Aug 2004, Yi-Xiong Sean Zhou wrote: > Hi, > > > > Could anyone tell me how to export a .dot file from ontoTools using toDot? i noticed later that your header mentions colored nodes, though your question does not. note that Rgraphviz supports dot exports in the following way: if g is a graph, then ag <- agopen(g, ...) produces an instance of Ragraph. now agwrite(ag, ...) will write the dot representation, which can include coloring and other attributes, depending on how you define the attributes of the graph. an example: library(graph) example(IMCAGraph) ff <- agopen( IMCAGraph, "foo", attrs = IMCAAttrs$defAttrs, nodeAttrs=IMCAAttrs$nodeAttrs, subGList=IMCAAttrs$subGList) agwrite(ff, file="/tmp/ff.dot") [it appears that some manual modifications of the resulting dot file may be necessary to get desired color properties of ff.ps if using dot -Tps ff.dot > ff.ps]
ADD COMMENT

Login before adding your answer.

Traffic: 1017 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6