Skip to content

Commit

Permalink
Show edge methods on edge hover option under graph options
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 2, 2022
1 parent 8bca46a commit 8cba3c9
Show file tree
Hide file tree
Showing 6 changed files with 388 additions and 380 deletions.
11 changes: 2 additions & 9 deletions modules/analyze/export-graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,8 @@ func GenerateCytoscapeJS(pg engine.Graph, alldetails bool) (CytoGraph, error) {
cytoedge.Data[key] = value
}

var maxprob engine.Probability
for _, edge := range connection.Edges() {
prob := edge.Probability(connection.Source, connection.Target)
cytoedge.Data["method_"+edge.String()] = prob
if prob > maxprob {
maxprob = prob
}
}
cytoedge.Data["_maxprob"] = maxprob
cytoedge.Data["_maxprob"] = connection.MaxProbability(connection.Source, connection.Target)
cytoedge.Data["methods"] = connection.StringSlice()

g.Elements[i] = cytoedge

Expand Down
Loading

0 comments on commit 8cba3c9

Please sign in to comment.