E | Kantenmenge als -Matrix |
w | Gewichtung der Kanten als -Vektor (optional) |
E | Kantenmenge als Matrix |
w | Gewichtung der Kanten als Vektor |
<html>
<head>
<script src="taramath.js"></script>
</head>
<body>
<div id="plot1" style="display:inline-block;"></div>
<div id="plot2" style="display:inline-block;"></div>
<script>
var G = Graph.random(24);
var T = Graph.spanning_tree(G.E, G.w);
Graph.plot("plot1", G.E, G.L, 240);
Graph.plot("plot2", T.E, G.L, 240);
</script>
</body>
</html>