Checks if AS path contains a specific AS number
bool containsAS(int asNumber) => asPath.contains(asNumber);