addDependency method
Implementation
void addDependency(String fromPath, String toPath) {
_nodes.add(fromPath);
_nodes.add(toPath);
_imports.putIfAbsent(fromPath, () => {}).add(toPath);
_importedBy.putIfAbsent(toPath, () => {}).add(fromPath);
}