DOCUMENTATION
  • Software
    • Software
    • SAS Viya
    • Industries
    • Solutions
    • Products
  • Learn
    • Learn
    • Training
    • Certification
    • Academics
    • Books
    • Video Tutorials
  • Support
    • Support
    • Communities
    • Documentation
    • Developers
    • Support & Services
    • User Groups
  • About Us
    • About Us
    • Why SAS?
    • Company
    • Careers
    • Newsroom
    • Events
    • Contact Us
  • Explore
    • Explore
    • Try & Buy
    • Why SAS?
    • Customer Stories
    • Partners
    • Consulting
  • Software
  • SAS Viya
  • Industries
  • Solutions
  • Products
  • Learn
  • Training
  • Certification
  • Academics
  • Books
  • Video Tutorials
  • Support
  • Communities
  • Documentation
  • Developers
  • Support & Services
  • User Groups
  • About Us
  • Why SAS?
  • Company
  • Careers
  • Newsroom
  • Events
  • Contact Us
  • Explore
  • Try & Buy
  • Why SAS?
  • Customer Stories
  • Partners
  • Consulting
  • Contact Us
Sign In

Create Profile

My SAS

Get access to My SAS, trials, communities and more.

SAS Sites

sas.com
Support
Blogs
Communities
Developer
Curiosity
Videos

Documentation

Learn
Brand
PartnerNet
Merchandise
SAS® Help Center
SAS® Viya® Platform: Network Python API Guide
2026.06
|PDF 
Feedback
 
  • Biconnected Component Algorithms
  • Centrality Algorithms
  • Clique Algorithms
  • Community Algorithms
  • Connected Component Algorithms
  • Core Algorithms
  • Cycle Algorithms
  • Flow Algorithms
  • Matching Algorithms
  • Minimum Cut Algorithms
  • Node Similarity Algorithms
  • Path Algorithms
  • Projection Algorithms
  • Query Algorithms
  • Reach Algorithms
  • Routing Algorithms
  • Shortest Path Algorithms
  • Spanning Tree Algorithms
  • Summary Algorithms
  • Topological Sort Algorithms
  • Traveling Salesman Algorithms
  • Mutable Graph Classes
  • Immutable Graph Classes
  • Output Graph Classes
  • Built-In Graph Utilities
  • Conversion Utilities
    • edge_attrs_to_torch_tensor
    • from_dgl
    • from_gds
    • from_graphtool
    • from_igraph
    • from_molecule
    • from_neo4j
    • from_networkx
    • from_pandas_dataframes
    • from_pandas_edges
    • from_pickle
    • from_rdf
    • from_sas_edges
    • from_torch_geometric
    • node_attrs_to_torch_tensor
    • to_adjacency_matrix
    • to_dgl
    • to_directed
    • to_dot
    • to_gds
    • to_graphtool
    • to_igraph
    • to_immutable
    • to_index_graph
    • to_molecule
    • to_mutable
    • to_neo4j
    • to_networkx
    • to_pickle
    • to_torch_geometric
    • to_undirected
  • Preprocessing Utilities
  • Random Attribute Generator Utilities
  • Visualization Utilities
  • Utilities
  • Examples
 

to_directed

Returns a directed copy of the input graph.

sasviya.network.utils.conversions.to_directed(g)
  • Parameters
  • Returns

Parameters

g : SAS graph object

Specifies the input graph to assess.

Returns

SAS graph object

Returns a directed copy of the input graph.

Last updated: July 28, 2026
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved