hetmatpy icon indicating copy to clipboard operation
hetmatpy copied to clipboard

basic how-to

Open Travis-Barton opened this issue 3 years ago • 2 comments

Hey all,

I commented on the other package as well, but is there another how-to here that I can use for understanding how to use this package?

Travis-Barton avatar Oct 21 '22 22:10 Travis-Barton

In general, you will probably start by creating a hetmat graph with:

https://github.com/hetio/hetmatpy/blob/3a426ccbcf63b27911e43be5ff305a3968224439/hetmatpy/hetmat/init.py#L20-L25

But to create graph, you'll need https://github.com/hetio/hetnetpy/issues/49! I'll follow up with a getting started.

Also noting the auto-generated docs, which might be slightly helpful https://hetio.github.io/hetmatpy/reference/hetmatpy/hetmat/

dhimmel avatar Oct 22 '22 14:10 dhimmel

Awesome! Thansk for getting back to me on this. Two questions, How do we establish the graph and path objects? Also, how do I query meta_path statistics for a given path? Or do I have to query a meta path that exists already?

Edit: actually a much simpler question is how do I get the metapath ID from the path of a cypher query? I found your API that allows me to answer my other questions!

Travis-Barton avatar Nov 08 '22 19:11 Travis-Barton