dynamic.Graph: DynamicGraph display of simple graph

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Uses the package dynamicGraph to create an advanced, interactive display of a simple graph

Usage

1
dynamic.Graph(object, ...)

Arguments

object

an object of class simpleGraph-class.

...

further arguments passed to DynamicGraph.

Value

A dynamicGraph window is open in which the graph can be inspected interactively.

Note

This interface is still very experimental.

Author(s)

Jens Henrik Badsberg, Claus Dethlefsen, Luca La Rocca

See Also

simpleGraph-class,plot.mathgraph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
G<-new("incidenceList",
       V=letters[1:12],
       E=list(
              d(6,5,c(2,4),c(1,3)),
              u(2,4,5),
              d(2,4),d(4,2),
              d(1,7),d(3,7),d(4,7),
              d(5,8),d(5,8),d(5,8),
              u(6,9),d(6,9),
              u(9,9),
              d(9,8),d(9,12),
              u(7,8),u(8,12),u(12,11),u(11,7),
              u(11,8),
              d(11,10)
             )
      )

sg <- new("simpleGraph",adjacencyMatrix=as(G,"adjacencyMatrix"))
## Not run: dynamic.Graph(sg)

G.1 <- new("incidenceList", 
           E = list(u(1, 2), d(1, 3), u(3), 
                    d(2, 5), d(2, 5), d(3, c(1, 4), 5),
                    u(2, 4, 5), d(c(3, 4), c(2, 1)), r(1, 5)), 
           V = 5:10)

ag <- new("anyGraph", incidenceList = G.1)
## Not run: dynamic.Graph(ag)

giRaph documentation built on May 30, 2017, 3:40 a.m.