fix: added factor support for graph_from_data_frame()
#1829
+23
−6
graph_from_data_frame()
#1829