GetGraphInfo {graphkernels}R Documentation

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

Author(s)

Mahito Sugiyama

Examples

data(mutag)
ginfo <- GetGraphInfo(mutag[[1]])

[Package graphkernels version 1.6.1 Index]