Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Use id instead of value
Browse files Browse the repository at this point in the history
  • Loading branch information
floriandejonckheere committed Mar 31, 2024
1 parent a3c5346 commit b9f3f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mosaik/extractors/structural.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def construct(constant)
# Find or create the the receiver node
receiver = graph.find_or_add_vertex(reference.constant.name)

debug "Edge from #{caller.value} to #{receiver.value}##{reference.method}"
debug "Edge from #{caller.id} to #{receiver.id}##{reference.method}"

# Add an edge from the constant to the receiver
# FIXME: aggregate edges with the same method
graph.add_directed_edge(caller.value, receiver.value, method: reference.method, weight: options[:structural])
graph.add_directed_edge(caller.id, receiver.id, method: reference.method, weight: options[:structural])
end
end
end
Expand Down

0 comments on commit b9f3f91

Please sign in to comment.