Refactor: extract NetworkGraphAnalyzer common code