gspan implementation using gboost
Show older comments
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 Comments
Star Strider
on 10 Aug 2014
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
on 14 Jun 2021
you probably soved it but try calling a = gspan(s,2)
Answers (0)
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!