SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/man/graph2T.Rd
ViewVC logotype

Diff of /pkg/Matrix/man/graph2T.Rd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2937, Mon Dec 16 10:38:02 2013 UTC revision 2945, Thu Dec 19 13:52:00 2013 UTC
# Line 83  Line 83 
83    )    )
84  }  }
85    a. <- sparseMatrix(i= 4:1, j=1:4, dimnames=list(n4,n4), giveC=FALSE) # no 'x'    a. <- sparseMatrix(i= 4:1, j=1:4, dimnames=list(n4,n4), giveC=FALSE) # no 'x'
86    show(a.)    show(a.) # "ngTMatrix"
87    show(g. <- as(a., "graph"))    show(g. <- as(a., "graph"))
88  \dontshow{  \dontshow{
89    stopifnot(edgemode(g.) == "undirected", numEdges(g.) == 2,    stopifnot(edgemode(g.) == "undirected", numEdges(g.) == 2,
90              as(g.,"Matrix"), as(a., "symmetricMatrix"))              all.equal(as(g., "TsparseMatrix"),
91                          as(a., "symmetricMatrix"))
92    )
93  }  }
94  }% only if( graph )  }% only if( graph )
95  }  }

Legend:
Removed from v.2937  
changed lines
  Added in v.2945

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge