added outlink expand/contract functions and unit tests
added expand/contract outlinks to graph-editor-view and refactored