GEM icon indicating copy to clipboard operation
GEM copied to clipboard

how to use GEM in an exsisting graph

Open Laya1363 opened this issue 5 years ago • 4 comments

Hi everyone,

I'd like to use GEM library in a graph that I created by myself. the file format of my graph is .owl. I don't know how should I read my graph into python, extract the edge lists and implement the methods on them. in which format should I have my graph(and probably how?) can anyone give me clear instruction?

Thanks

Laya1363 avatar Jan 20 '20 12:01 Laya1363

GEM is using networkx library for the graphs representations. So probably all you need is another library (like this) that converts owl files to networkx graphs.

CatcherGG avatar Jan 29 '20 19:01 CatcherGG

@CatcherGG thanks for your answer. yes I also saw this library onto2nx to convert my data but unfortunately there is no tutorial for this library in the internet. And I just struggling to get know how should I do that. if you have experience using it, I would be appreciated if you can help by giving some tips. Thanks

Laya1363 avatar Jan 30 '20 09:01 Laya1363

You can also convert OWL to a text file with edges which you can easily load into networkx.

palash1992 avatar Feb 10 '20 22:02 palash1992

@palash1992 you mean just convert the owl file format in .txt and use it in Networkx? could you please explain more I am pretty new in ML methods and also Networkx and any additional explanation is appreciated..

Laya1363 avatar Feb 12 '20 08:02 Laya1363