edges -> raw-edges, filtered-edges -> edges
inline usage
simplify main