How to set line type in python when plot a graph?

I found that line type can be set in R by setting plot parameter “edge.lty”. But it seems not work in python. I cannot find and any document about how to set line type in python.