<｜begin▁of▁sentence｜>### Instruction:
Given a flow network in a file named 'flow_network.dimacs', can you read the graph using igraph's Read_DIMACS function and extract the source and target nodes, as well as the edge capacities?
### Response:
import igraph as ig

# Read a graph from a DIMACS formatted file
g = ig.Graph.Read_DIMACS('flow_network.dimacs', directed=True)

# Print the source and target node indices
print('Source:', g['source'], 'Target:', g['target'])

# Print edge capacities
print('Edge capacities:', g.es['capacity'])
<|EOT|>
