Permalink
Browse files

fixed bug in HTML visualisation preventing colors to show in ipynb

  • Loading branch information...
IngoScholtes committed Nov 20, 2018
1 parent 1d00f53 commit cd1e6e754c3ef7af9d3cff1e9d19359106f3830e
@@ -124,6 +124,7 @@ def _temporal_walk(tempnet, l=100, start_node=None):
itinerary.append(current_node)
steps = 0
for t in tempnet.ordered_times:
prev_node = current_node
# find possible targets in time t
targets = set()
for (v, w, time) in tempnet.time[t]:
@@ -134,7 +135,8 @@ def _temporal_walk(tempnet, l=100, start_node=None):
current_node = _np.random.choice(list(targets))
steps += 1
# add currently visited node
itinerary.append(current_node)
if current_node != prev_node:
itinerary.append(current_node)
if steps == l:
break
return itinerary
@@ -14,7 +14,7 @@
.arrows svg:path {
stroke: #666;
}
.nodes circle {
.nodes_${div_id} circle {
stroke: #fff;
stroke-width: 0.5px;
}
@@ -107,7 +107,7 @@
link.attr("marker-end", "url(#end)");
var node_g = g.append("g")
.attr("class", "nodes")
.attr("class", "nodes_${div_id}")
.selectAll("circle")
.data(graph.nodes)
.enter()
@@ -30,7 +30,7 @@
fill-opacity: 1;
stroke-width: 2px;
}
circle {
circle.tnodes_${div_id} {
fill: $inactive_node_color;
stroke: #222;
fill-opacity: 1;
@@ -20,7 +20,7 @@
fill-opacity: 1;
stroke-width: 2px;
}
circle {
circle.nodes_${div_id} {
fill: $inactive_node_color;
stroke: #222;
fill-opacity: 1;

0 comments on commit cd1e6e7

Please sign in to comment.