computeBGPRoutes<T> function
Convenience function for quick BGP route computation
asTopology - AS topology as adjacency list
sourceAS - Source AS for routing table
policies - Optional routing policies
Returns complete BGP routing table from source AS
Throws ArgumentError if source AS doesn't exist in topology
Implementation
BGPRoutingTable<T> computeBGPRoutes<T>(
Map<T, Map<T, num>> asTopology,
T sourceAS, {
Map<String, dynamic>? policies,
}) {
return BGPAlgorithm<T>().computeRoutes(
asTopology,
sourceAS,
policies: policies,
);
}