Skip to content
Snippets Groups Projects

pydtn agkmeans and version 1.0

Merged Hunter McConnell (rtm534) requested to merge summer2022 into develop
8 files
+ 305
273
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 7
7
@@ -18,14 +18,14 @@ def main():
pool = Pool()
traces = [
'../../processed/taxi10',
'../../processed/taxi20',
'../../processed/taxi50',
"../../processed/taxi10",
"../../processed/taxi20",
"../../processed/taxi50",
# '../../processed/taxi100',
]
node_types = [
Node, # direct delivery
Node, # direct delivery
EpidemicNode,
BubbleKCliqueNode,
HCBFKCliqueNode,
@@ -68,14 +68,14 @@ def main():
y2 = [stat["delivery-cost"] for stat in test[1]]
# y3 = [stat["latency"] for stat in test[1]]
ax1.plot(x, y1, 'o-', label=node)
ax2.plot(x, y2, 'o-', label=node)
ax1.plot(x, y1, "o-", label=node)
ax2.plot(x, y2, "o-", label=node)
plt.xlabel("Distance threshhold (m)")
plt.legend()
plt.show()
if __name__ == '__main__':
if __name__ == "__main__":
# sys.exit(main(parse_args(sys.argv[1:])))
sys.exit(main())
Loading