todo comment
refactoring and fixing vertex collector
refactor edge collector and adding edge for trait
test for simple trait
implementing edge for use trait