Computational study of topological line defects in graphite