Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The vertex ids are different between input and output #11

Open
zhouchunpong opened this issue Oct 25, 2019 · 3 comments
Open

The vertex ids are different between input and output #11

zhouchunpong opened this issue Oct 25, 2019 · 3 comments

Comments

@zhouchunpong
Copy link

zhouchunpong commented Oct 25, 2019

Thank you very much for your open code! But these is something wrong when I try to use these code.

I use the edge list as the input of PGD as follow:

1 2
1 6
1 4
4 5
4 3
3 5

The output of the PGD is :

% src,dst,triangle,2-star,4-clique,4-chordal-cycle,4-tailed-triangle,4-cycle,3-star,4-path
6,5,1,0,0,0,0,0,0,0
5,4,1,1,0,0,0,0,0,0
6,4,1,1,0,0,0,0,0,0
2,1,0,2,0,0,0,0,1,0
3,1,0,2,0,0,0,0,1,0
4,1,0,4,0,0,0,0,2,4

It's easy to see that the vertex ids are different between input and output
So do you have any method to solve it ?

Best Regards

@zhouchunpong zhouchunpong changed the title The vertex ids is different between input and output The vertex ids are different between input and output Oct 25, 2019
@seven-echo
Copy link

Hi,
It seems you should use the input file with the extension $.mtx$ and other extension file will occur some error with node index.

For example:

# cat test.mtx
%%MatrixMarket matrix coordinate pattern symmetric 
6 6 6
1 2
1 6
1 4
4 5
4 3
3 5

Output:

# cat test.micro
% src,dst,triangle,2-star,4-clique,4-chordal-cycle,4-tailed-triangle,4-cycle,3-star,4-path
4,1,0,4,0,0,0,0,2,4
5,4,1,1,0,0,0,0,0,0
3,4,1,1,0,0,0,0,0,0
5,3,1,0,0,0,0,0,0,0
2,1,0,2,0,0,0,0,1,0
6,1,0,2,0,0,0,0,1,0

BTW, it's been a while since you asked the question. Have you find an alternative algorithm to calucate the motif counts for each edge?

@zhouchunpong
Copy link
Author

Hi, this code may be helpful
ORCA - ORbit Counting Algorithm: https://github.com/thocevar/orca

@seven-echo
Copy link

Hi, this code may be helpful
ORCA - ORbit Counting Algorithm: https://github.com/thocevar/orca

Thanks for your sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants