Standalone simulation for Spanning Tree Protocol using single source dijkstra