Skip to content

Commit

Permalink
fixed owner network duplication problem
Browse files Browse the repository at this point in the history
  • Loading branch information
thallium205 committed Aug 29, 2012
1 parent 1f6ac85 commit 6955ccc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file modified server/bin/bitcoinvisualizer/GraphBuilder$2.class
Binary file not shown.
Binary file modified server/bin/bitcoinvisualizer/GraphBuilder.class
Binary file not shown.
8 changes: 6 additions & 2 deletions server/src/bitcoinvisualizer/GraphBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1239,8 +1239,12 @@ private static void createOwners(final Node block)

final Iterable<Node> addresses = address.traverse(org.neo4j.graphdb.Traverser.Order.BREADTH_FIRST, StopEvaluator.END_OF_GRAPH, ReturnableEvaluator.ALL, AddressRelTypes.same_owner, Direction.BOTH);
for (final Node owned : addresses)
{
owner.createRelationshipTo(owned, OwnerRelTypes.owns);
{
// Do not create duplicate edges of the same type either...
if (!owned.hasRelationship(OwnerRelTypes.owns, Direction.INCOMING))
{
owner.createRelationshipTo(owned, OwnerRelTypes.owns);
}
}
}
}
Expand Down

0 comments on commit 6955ccc

Please sign in to comment.