gspan implementation using gboost
Afficher commentaires plus anciens
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 commentaires
Star Strider
le 10 Août 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
le 14 Juin 2021
you probably soved it but try calling a = gspan(s,2)
Réponses (0)
Catégories
En savoir plus sur Cell Arrays dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!