Research Article

Algorithms for Computing Wiener Indices of Acyclic and Unicyclic Graphs

Table 1

Computing time (milliseconds) of five algorithms for star graph.


100.1082520.1052540.09427750.0931660.084932
200.114240.1093580.1074740.103620.086898
500.134960.131320.1282420.1162540.088754
1000.713280.18910.165420.125970.09881
1000615876.157.72280.133120.105416
100002.70720.11802