fix bug in GraphData class and add suitable unit test
fix bug in GraphData class and add suitable unit test: a task in life-science-SWE1.0 (Harbor dataset). Title: fix bug in GraphData class and add suitable unit test
The task
**Title:** fix bug in GraphData class and add suitable unit test
Part of scalingX/life-science-SWE1.0.