gspan implementation using gboost

Hi i am new to matlab and trying to implement gboost library in Matlab for subgraph mining. the input format is specified as
G : (1,n) cellarray of n graph structures with this layout
g.nodelables :(n,1) discrete integer labels [L_1;L_2;...:L_n];
g.edges: (m,2) edges, [from to] at each line: [e_1_{from} e_1_{to} ;...; e_m_{from} e_m_{to}]
the node indices go from 1 to n.
I tried creating cell array 's' of two graph structures G and P using following script
>> G.nodelabels =['a';'b';'c']
>> G.edges =[1 2;1 3 ;2 3]
>> P.nodelabels =['d';'e';'f']
>> P.edges =[1 2 ;1 3 ;2 3]
>> s ={G,P}
s =
[1x1 struct] [1x1 struct]
>> gspan(s,2)
But i get the following error when i implement the 'gspan' algorithm. Can someone help or correct where i went wrong??
*Starting normal gspan run... Undefined function or variable "subg".
Error in gspan (line 124) for i=1:length(subg)*

댓글 수: 2

Star Strider
Star Strider 2014년 8월 10일
You might do better to post this to a ‘gboost’ group or ask ‘gboost’ technical support. I never heard of ‘gboost’ before reading your Quesiton.
Clara Vetter
Clara Vetter 2021년 6월 14일
you probably soved it but try calling a = gspan(s,2)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

질문:

2014년 8월 10일

댓글:

2021년 6월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by