benedekrozemberczki / graph2vec

A parallel implementation of "graph2vec: Learning Distributed Representations of Graphs" (MLGWorkshop 2017).
https://karateclub.readthedocs.io/
GNU General Public License v3.0
901 stars 169 forks source link

subgrahs #27

Closed SihamAmarouche closed 4 years ago

SihamAmarouche commented 4 years ago

Can I use graph2vec to represent subgraphs(that contain two nodes or three) as vectors then I will cluster these subgraphs to N number clusters using K-means or Dbscan algorithms Is it a logical process ?

Thanks very much .

benedekrozemberczki commented 4 years ago

Could you write something more detailed (step-by-step)?

On Wed, 26 Aug 2020 at 01:24, Siham Amaouche notifications@github.com wrote:

Can I use graph2vec to represent subgraphs as vectors then I will cluster these subgraphs to N number clusters ? Thanks .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/benedekrozemberczki/graph2vec/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEETMF4LYU352K7K4XIPYZLSCRP3XANCNFSM4QLIM2OQ .

SihamAmarouche commented 4 years ago

I have a big one graph then I used gspan algorithm, FSG or any another algorithm to extract subgraphs from this graph after that I want to cluster these subgraphs using dbscan or k-means and to clustering them(subgraphs) I convert subgraphs to vectors using graph2vec model Is it a logical process I mean can I use graph2vec on subgraphs ? or is there any another suggestions to convert subgraphs to vectors ?

benedekrozemberczki commented 4 years ago

It is fine. Just make sure that you reindex them. Other methods in the Karate Club package would work well (e.g. FEATHER). Could you star that repository and hit a follow on github?

On Wed, 26 Aug 2020 at 15:32, Siham Amaouche notifications@github.com wrote:

I have a big one graph then I used gspan algorithm, FSG or any another algorithm to extract subgraphs from this graph after that I want to cluster these subgraphs using dbscan or k-means and to clustering them(subgraphs) I convert subgraphs to vectors using graph2vec model Is it a logical process I mean can I use graph2vec on subgraphs ? or is there any another suggestions to convert subgraphs to vectors ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benedekrozemberczki/graph2vec/issues/27#issuecomment-680954409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEETMF6BV7PABPT3ML7ULHTSCUTI7ANCNFSM4QLIM2OQ .

SihamAmarouche commented 4 years ago

Yes I'm already gave star to this repository and thanks very much for your quick reply .