{"size": 434, "ext": "js", "max_stars_repo_path": "example/EdgeExtension/index.js", "max_stars_repo_name": "antonKalinin/nodeui", "max_stars_repo_stars_event_min_datetime": "2017-04-06T14:39:22.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-17T20:38:28.000Z", "max_issues_repo_path": "example/EdgeExtension/index.js", "max_issues_repo_name": "antonKalinin/nodeui", "max_issues_repo_issues_event_min_datetime": "2017-09-12T06:19:43.000Z", "max_issues_repo_issues_event_max_datetime": "2019-01-17T14:24:45.000Z", "max_forks_repo_path": "example/EdgeExtension/index.js", "max_forks_repo_name": "antonKalinin/nodeui", "max_forks_repo_forks_event_min_datetime": "2017-09-12T00:51:14.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-26T06:15:04.000Z"}
{"max_stars_count": 81, "max_issues_count": 6, "max_forks_count": 19, "avg_line_length": 22.8421052632, "max_line_length": 72, "alphanum_fraction": 0.4746543779}
import React from 'react';
import {Edge} from '../../index';

export class GitEdge extends Edge {
    getStyles(source, target) {
        if (parseInt(target.id) === 3) {
            return {stroke: '#FF5733'};
        }

        if (parseInt(target.id)  > 5) {
            if (parseInt(source.id) ===5 && parseInt(target.id) === 9) {
                return null;
            }

            return {stroke: '#fff'};
        }
    }
}
