powered by
This function extracts necessary information of graphs for kernel computation.
GetGraphInfo(g)
an igraph graph
igraph
a list of graph information with the following elements:
a matrix of edges with their labels
a vector of vertex labels
the number of vertices
the number of edges
the maximum degree
# NOT RUN { data(mutag) ginfo <- GetGraphInfo(mutag[[1]]) # }
Run the code above in your browser using DataLab