Remove extra prints
This commit is contained in:
parent
022398e275
commit
fb31c91cab
|
@ -0,0 +1,22 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>Quick Sigma.js Example</title>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/2.4.0/sigma.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/graphology/0.25.4/graphology.umd.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<body style="background: lightgrey">
|
||||||
|
<div id="container" style="width: 800px; height: 600px; background: white"></div>
|
||||||
|
<script>
|
||||||
|
// Create a graphology graph
|
||||||
|
const graph = new graphology.Graph();
|
||||||
|
graph.addNode("1", { label: "Node 1", x: 0, y: 0, size: 10, color: "blue" });
|
||||||
|
graph.addNode("2", { label: "Node 2", x: 1, y: 1, size: 20, color: "red" });
|
||||||
|
graph.addEdge("1", "2", { size: 5, color: "purple" });
|
||||||
|
|
||||||
|
// Instantiate sigma.js and render the graph
|
||||||
|
const sigmaInstance = new Sigma(graph, document.getElementById("container"));
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
2
woven.py
2
woven.py
|
@ -311,8 +311,6 @@ def main():
|
||||||
with redirect_stdout(open(devnull, "w") if args.quiet else stdout):
|
with redirect_stdout(open(devnull, "w") if args.quiet else stdout):
|
||||||
try:
|
try:
|
||||||
config = WovenMesh.load_json_file(args.config)
|
config = WovenMesh.load_json_file(args.config)
|
||||||
print(config)
|
|
||||||
print(config.to_json_str())
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print(f"No configuration file found at '{args.config}'", file = stderr)
|
print(f"No configuration file found at '{args.config}'", file = stderr)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in New Issue