GraphDataAggregator - jfuruness/bgpy_pkg GitHub Wiki
Graph Data Aggregator
GraphDataAggregator, located here, takes the outcome of the traceback from the ASGraphAnalyzer, and gets statistics from it. For example, from the output of the traceback, the GraphDataAggregator will determine - what percent of adopting ASes where hijacked, disconnected, or successfully connected? What percent of non adopting ASes for those same metrics? What about for adopting and non adopting ASes combined? What about for a specific subcategory of ASes like the stubs, or the input_clique? The MetricTracker answers all these questions and more
It's not possible to be able to determine in advance all the types of metrics that users will want to have for their graphs, so this class can be swapped out in the Simulation class as a parameter. If you want to track new metrics, it's likely going to be easier to just write your own data aggregator from scratch than extend this.
In general, this and the GraphFactory are the least extendable parts of BGPy. I highly, highly recommend just sticking with the defaults, and if you're working with a paper, changing the way the paper is written to conform to this. It will make your life a lot easier. If you really want separate metrics, you can reach out at [email protected], but since this really isn't supported (you should just rewrite it from scratch or use the defaults) I'm not sure I'll be of much help in this particular area. Can't hurt to ask though!