Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a) get incident matrix of a graph.
- b-) get transpose of the incident matrix
- c-)multiply incident matrix and its transpose (incident matrix * its transpose)
- d) create 2*Identity matrix .
- e) subtract this identity matrix from output of multiplication
- f) this give us the adjancy matrix of the line graph
- d) then create line graph
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement