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

C++ implementation of pgr_kruskal #1051

Merged
merged 4 commits into from Jun 24, 2018
Merged

Conversation

apslight
Copy link
Contributor

@apslight apslight commented Jun 21, 2018

  • Fix pgr_kruskal file

Signature

seq | edge| cost| tree_cost

@apslight
Copy link
Contributor Author

Output for edge table:

 seq | edge | cost | tree_cost 
-----+------+------+-----------
   1 |    1 |    1 |         1
   2 |    3 |    1 |         2
   3 |    7 |    1 |         3
   4 |   15 |    1 |         4
   5 |   18 |    1 |         5
   6 |   17 |    1 |         6
   7 |   14 |    1 |         7
   8 |   16 |    1 |         8
   9 |   13 |    1 |         9
  10 |   12 |    1 |        10
  11 |   11 |    1 |        11
  12 |   10 |    1 |        12
  13 |    6 |    1 |        13
  14 |    2 |    1 |        14
(14 rows)

@apslight
Copy link
Contributor Author

when sub_graph is added then result:

 seq | sub_graph | edge | cost | tree_cost 
-----+-----------+------+------+-----------
   1 |         1 |    1 |    1 |         1
   2 |         1 |    3 |    1 |         2
   3 |         1 |    7 |    1 |         3
   4 |         1 |   15 |    1 |         4
   5 |         1 |   14 |    1 |         5
   6 |         1 |   16 |    1 |         6
   7 |         1 |   13 |    1 |         7
   8 |         1 |   12 |    1 |         8
   9 |         1 |   11 |    1 |         9
  10 |         1 |   10 |    1 |        10
  11 |         1 |    6 |    1 |        11
  12 |         1 |    2 |    1 |        12
  13 |         2 |   17 |    1 |         1
  14 |         3 |   18 |    1 |         1
(14 rows)

@apslight apslight merged commit 4bef0f1 into pgRouting:gsoc/mincut Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant