#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created in February 2017 in ComplexCity Lab

@author: github.com/fpfaende

what it does
	clean roads graph created from osm file

parameters
	graph

how it works
	1 - remove nodes without geographic informations (latitude or longitude)
	2 - remove self referencing edges (loop on itself)
	3 - remove isolated nodes (degree is 0 )

return
	graph minus alone or non-conform nodes

'''

import networkx as nx

#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created in February 2017 in ComplexCity Lab

@author: github.com/fpfaende

what it does
	clean roads graph created from osm file

parameters
	graph

how it works
	1 - remove nodes without geographic informations (latitude or longitude)
	2 - remove self referencing edges (loop on itself)
	3 - remove isolated nodes (degree is 0 )

return
	graph minus alone or non-conform nodes

'''

import networkx as nx

#!/usr/bin/python # -*- coding: utf-8 -*- Created in February 2017 in ComplexCity Lab  @author: github.com/fpfaende  what it does 	clean roads graph created from osm file  parameters 	graph  how it works 	1 - remove nodes without geographic informations (latitude or longitude) 	2 - remove self referencing edges (loop on itself) 	3 - remove isolated nodes (degree is 0 )  return 	graph minus alone or non-conform nodes