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

Set weight=0 has no effect #7

Open
tien-vo-xuan opened this issue Aug 25, 2012 · 1 comment
Open

Set weight=0 has no effect #7

tien-vo-xuan opened this issue Aug 25, 2012 · 1 comment

Comments

@tien-vo-xuan
Copy link

Description:
Set weight=0 has no effect.

Steps To Reproduce:

  1. Make a graph with two out-edge from v_Begin:
  • e_A with label:
    e_A {new line}
    weight=0
  • e_B with label:
    e_B
  1. Run using this command
    java -jar graphwalker.jar offline -g RANDOM -f ./weight_AB.graphml -s TEST_LENGTH:100 -w
  2. You can see ratios flow though e_A and e_B are equal.

Expected result:
Ratio of e_B is 100%, and ratio of e_A is 0%.

More information:
weight=0.00 has the same issue.
weight=-0 has the same issue.
weight=-0.00 has the same issue.
weight=0.01 is work as expected.

Attach file (graphs):
Please comment here and I'll send to you via email.

Sorry for my english!

@KristianKarl-zz
Copy link
Owner

Thanx for the report.
RandomPathGenerator.getWeightedEdge need a code review.

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