The algorithm should be refactored and unified for basic nets and composite nets.
Activity