Learn R Programming

graphkernels (version 1.6.1)

GetGraphInfo: Necessary information of graphs for kernel computation

Description

This function extracts necessary information of graphs for kernel computation.

Usage

GetGraphInfo(g)

Arguments

g

an igraph graph

Value

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

Examples

Run this code
# NOT RUN {
data(mutag)
ginfo <- GetGraphInfo(mutag[[1]])
# }

Run the code above in your browser using DataLab