Method for importing csv data to edges table.
Column named 'Source' and 'Target' (case insensitive) should be provided. Any row that does not provide a source and target nodes ids will be ignored.
If no 'Type' (case insensitive) column is provided, all edges will be directed.
If an edge already exists or cannot be created, it will be ignored, and no data will be updated.
Special cases are id, source, target and type columns:
- First column found named 'id' (case insensitive) will be used as node id, others will be ignored.
- First column named 'Source' (case insensitive) will be used as source node id. The next ones will be used as normal columns, and created if not already existing.
- First column named 'Target' (case insensitive) will be used as target node id. The next ones will be used as normal columns, and created if not already existing.
- First column named 'Type' (case insensitive) will be used as edge type, matching 'Directed' or 'Undirected' strings (case insensitive). The next ones will be used as normal columns, and created if not already existing.
@param file CSV file
@param separator Separator of values of the CSV file
@param charset Charset of the CSV file
@param columnNames Names of the columns in the CSV file to use
@param columnTypes Types of the columns in the CSV file to use when creating columns
@param createNewNodes Indicates if missing nodes should be created when an edge declares a source or target id not already existing