GetGraphInfo {graphkernels} | R Documentation |
This function extracts necessary information of graphs for kernel computation.
GetGraphInfo(g)
g |
an |
a list of graph information with the following elements:
edge |
a matrix of edges with their labels |
vlabel |
a vector of vertex labels |
vsize |
the number of vertices |
esize |
the number of edges |
maxdegree |
the maximum degree |
Mahito Sugiyama
data(mutag)
ginfo <- GetGraphInfo(mutag[[1]])